<?php
namespace app\shop\model;

use think\Model;
use app\admin\model\Attachment;

/**
 * 资讯模型
 * @package app\admin\model
 */
class LiveList extends Model
{
    protected $name = 'shop_live_list';

    protected $autoWriteTimestamp = true;

    public function getimgpath()
    {
    	return $this->hasOne(Attachment::class, 'id', 'photo');
    }
}